package com.example.study.common.login.dto;

import com.example.study.common.login.dto.UserDTO;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@Builder
@NoArgsConstructor
public class UserTokenWrapperDTO {
    /**
     * token
     */
    private String token;
    /**
     * 是否有密码 非默认初始密码
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Boolean hasPassword;
    /**
     * 1.keke登录  2.study_app登录
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer type;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private UserDTO userDTO;
}
